package com.imooc.jdbc.hrapp;

import com.imooc.jdbc.hrapp.command.*;

import java.util.Scanner;

public class HumanResourceApplication {
    public static void main(String[] args) {
        System.out.println("1-查询部门员工");
        System.out.println("2-办理员工入职");
        System.out.println("3-员工调薪");
        System.out.println("5-员工分页查询");
        System.out.println("请选择功能：");
        Scanner in = new Scanner(System.in);

        Integer cmd = in.nextInt();

        Command command = null;

        switch (cmd){
            case 1:
//                Command command = new QueryCommand();
                command = new PstmQueryCommand();
                command.execute();
                break;

            case 2:
                command = new InsertCommand();
                command.execute();
                break;
            case 3:
                command = new UpdateCommand();
                command.execute();
                break;
            case 5:
                command = new PaginationCommand();
                command.execute();
                break;
        }

    }
}
